package com.rcloud.server.sealtalk.rongcloud.message;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

/**
 * @Author: Jianlu.Yu
 * @Date: 2020/9/8
 * @Description: 联系人消息体
 * @Copyright (c) 2020, rongcloud.cn All Rights Reserved
 */

public class DiyMessage extends BaseMessage {
    private Object content;
    private String type;

    public DiyMessage(Object content, String type) {
        this.content = content;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public String toString() {
        return GsonUtil.toJson(this, DiyMessage.class);
    }
}
